package lab02.test26;

import java.util.Scanner;

/**
 * Created by admin on 2017/11/13.
 */
public class ExceptionTest {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in );
        System.out.println("Please input 1st int:");
        int a=input.nextInt();
        System.out.println("Please input 2st int:");
        int b=input.nextInt();


        int c = 0;
        try {
          c=a/b;
        }catch (Exception e){
            System.out.println("除数为0！！");
        }finally {
            System.out.println("异常处理。");


        }
    }

}
